-
Notifications
You must be signed in to change notification settings - Fork 56
Constructor init of java.lsp.server JavaPlatformProvider override #453
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Constructor init of java.lsp.server JavaPlatformProvider override #453
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks
1c4202d to
427e230
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for fixing this
427e230 to
ff7e639
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks OK to me.
1. Allowed LspJavaPlatformProviderOverride to initialize the override
based on the value set for the option "netbeans.lsp.java.platform.override"
passed as a JVM system property.
2. Utilised platform override system property in Java VSCode extension
1. From the Java VSCode extension, passed the value of
"jdk.project.jdkhome" configuration to the NBLS via the JVM
system property flag "netbeans.lsp.java.platform.override".
2. This additionally allows the LspJavaPlatformProviderOverride to initialize
the JavaPlatform override during construction, avoiding any caching
of the default platform prior to the configuration being read via LSP.
ff7e639 to
386be22
Compare
Brings NetBeans PR Constructor init of java.lsp.server JavaPlatformProvider override apache/netbeans#8745 as a patch
Allowed
LspJavaPlatformProviderOverrideto initialize the override based on the value set for the option "netbeans.lsp.java.platform.override" passed as a JVM system property.Utilised platform override system property in Java VSCode extension
jdk.project.jdkhome" configuration to the NBLS via the JVM system property flag "netbeans.lsp.java.platform.override".LspJavaPlatformProviderOverrideto initialize theJavaPlatformoverride during construction, avoiding any caching of the default platform prior to the configuration being read via LSP.Thanks to @lahodaj for the idea of this fix.